﻿using SiyinPractice.Domain.ProjectManagement.ProjectManage;
using SiyinPractice.Infrastructure.EntityFramework.EntityConfigurations;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SiyinPractice.Infrastructure.DataStore.ProjectManagement.ProjectManage.EntityConfigurations
{

    public class WeChatConfiguration : AbstractEntityTypeConfiguration<WeChat>
    {
        public override void Configure(EntityTypeBuilder<WeChat> builder)
        {
            base.Configure(builder);
            builder.ToTable("SysWeChat");
            builder.Property(x => x.PId).HasColumnName("PId");
            builder.Property(x => x.IsPid).HasColumnName("IsPid");
            builder.Property(x => x.CorpId).HasColumnName("CorpId");
            builder.Property(x => x.CorpSecret).HasColumnName("CorpSecret");
            builder.Property(x => x.Agentid).HasColumnName("Agentid");
            builder.Property(x => x.DefaultTimer).HasColumnName("DefaultTimer");
            builder.Property(x => x.DefaultTimerInterval).HasColumnName("DefaultTimerInterval");

            builder.Property(x => x.Touser).HasColumnName("Touser");
            builder.Property(x => x.Toparty).HasColumnName("Toparty");
            builder.Property(x => x.Totag).HasColumnName("Totag");
            builder.Property(x => x.Msgtype).HasColumnName("Msgtype");
            builder.Property(x => x.Safe).HasColumnName("Safe");
            builder.Property(x => x.Enable_id_trans).HasColumnName("Enable_id_trans");
            builder.Property(x => x.Enable_duplicate_check).HasColumnName("Enable_duplicate_check");
            builder.Property(x => x.Duplicate_check_interval).HasColumnName("Duplicate_check_interval");
            builder.Property(x => x.Content).HasColumnName("Content");
        }
    }
}
